package com.marktotop.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.marktotop.entity.business.VaccineDevolution;
import com.marktotop.error.SystemException;
import com.marktotop.response.ResultBean;
import com.marktotop.vo.business.VaccineDevolutionVO;
import io.swagger.models.auth.In;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author MarkToTop
 * @since 2021-07-16
 */
public interface IVaccineDevolutionService extends IService<VaccineDevolution> {


    /**
     * 疫苗下放列表记录，模糊分页展示
     *
     * @param pageNum
     * @param pageSize
     * @param devolutionVO
     * @return
     */
    ResultBean findVaccineDevolutionList(Integer pageNum, Integer pageSize, VaccineDevolutionVO devolutionVO);


    /**
     * 添加疫苗下发记录信息
     *
     * @param devolution
     * @return
     * @throws SystemException
     */
    boolean addVaccineDevolutionRecord(VaccineDevolution devolution) throws SystemException;


    /**
     * 编辑 疫苗下发记录
     *
     * @param id
     * @return
     */
    VaccineDevolutionVO editDevolutionRecord(Long id);


    /**
     * 判断该接种点是否有下发疫苗，如果有，查询所有疫苗库存是否都为0
     *
     * @param id
     * @return
     */
    boolean haveRecordsBySiteId(Long id);
}
